import request from '@/utils/request'

export default {
    addVideo(video) {
        return request({
            url: `/service_edu/video/add`,
            method: 'post',
            data: video
        })
    },
    getVideo(id) {
        return request({
            url: `/service_edu/video/${id}`,
            method: 'get',
        })
    },
    delVideo(id) {
        return request({
            url: `/service_edu/video/${id}`,
            method: 'delete',
        })
    },
    updateVideo(id, video) {
        return request({
            url: `/service_edu/video/${id}`,
            method: 'put',
            data: video
        })
    },
}
